﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddNewAdmin.ascx.cs" Inherits="NLLSite.Administrator.UserControl.AddNewAdmin" %>

<div class="box box-100">
    <div class="boxin">
        <div class="header">
            <h3>
                Thêm mới tài khoản</h3>
        </div>
        <div style="padding: 18px;">
            <!--<form class="basic" action="" method="post" enctype="multipart/form-data"><!-- Default basic forms -->
            <div class="inner-form">
<asp:Panel ID="Panel1" runat="server" >

        
    
    <table>
        <tr>
            <td>Tài khoản: </td>
            <td>
                <asp:TextBox ID="txtTaiKhoan" runat="server" Width="250px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtTaiKhoan" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                <asp:Label ID="Label1" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>Mật khẩu: </td>
            <td>
                <asp:TextBox ID="txtMatKhau" runat="server"  Width="250px" TextMode="Password"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtMatKhau" ErrorMessage="(*)"></asp:RequiredFieldValidator>
            </td>
        </tr>       
        <tr>
            <td>Tên</td>
            <td>
                <asp:TextBox ID="txtTen" runat="server"  Width="250px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtTen" ErrorMessage="(*)"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>Số điện thoại: </td>
            <td>
                <asp:TextBox ID="txtDienThoai" runat="server"  Width="250px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtDienThoai" ErrorMessage="(*)"></asp:RequiredFieldValidator>
            </td>
        </tr>  
        <tr>
            <td>Email </td>
            <td>   
                <asp:TextBox ID="txtEmail" runat="server" Width="250px"></asp:TextBox>
            </td>
            <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Không đúng định dạng" 
                    ValidationExpression="^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$"></asp:RegularExpressionValidator>
            </td>
        </tr>   
         <tr>
            <td>Trạng thái: </td>
            <td>
                <asp:CheckBox ID="CheckBox1" runat="server" />
             </td>
            <td></td>
        </tr>
         <tr>
            <td></td>
            <td>
                <asp:Button ID="btnAdd" runat="server" Text="Thêm" onclick="btnAdd_Click" />
                <asp:Button ID="btnReset" runat="server" Text="Hủy bỏ" 
                    onclick="btnReset_Click" />
            </td>
            <td></td>
        </tr>
    </table>
    
                </asp:Panel>
</div>
        </div>
    </div>
</div>

